﻿/*
 Copyright aswing.org, see the LICENCE.txt.
*/


/**
 * Pen, to draw line drawing.
 * @author iiley
 */
class YouHP.Graphics.Pen{
	private var _thickness:Number;
	private var _color:Number;
	private var _alpha:Number;
	
	/**
	 * Pen(color:ASColor, thickness:Number)<br>
	 * Pen(color:Number, thickness:Number, alpha:Number)<br>
	 */
	function Pen( thickness:Number, color:Number, alpha:Number){
	    this._color = color;
	    this._thickness = thickness;
	    this._alpha = alpha;
	}
	
	public function getColor():Number{
		return _color;
	}
	
	public function setColor(color:Number):Void{
		this._color=color;
	}
	
	public function getThickness():Number{
		return _thickness;
	}
	
	public function setThickness(thickness:Number):Void{
		this._thickness=thickness;
	}
	
	public function getAlpha():Number{
		return _alpha;
	}
	
	public function setAlpha(alpha:Number):Void{
		this._alpha=alpha;
	}
	
	public function setTo(target:MovieClip):Void{
		target.lineStyle(_thickness, _color, _alpha);
	}
	
	
}
